package com.ruoyi.demo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 演示任务表 demo_todo
 *
 * @author ruoyi
 * @date 2019-05-31
 */
public class Todo extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * id主键
	 */
	private Long id;
	/**
	 * 任务标题
	 */
	private String title;
	/**
	 * 任务描述
	 */
	private String content;
	/**
	 * 任务开始时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date startTime;
	/**
	 * 任务状态
	 */
	private Integer state;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTitle() {
		return title;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getContent() {
		return content;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getState() {
		return state;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
			.append("id", getId())
			.append("title", getTitle())
			.append("content", getContent())
			.append("startTime", getStartTime())
			.append("state", getState())
			.toString();
	}
}
